//
//  BKChatModel.h
//  buka
//
//  Created by 曹飞 on 16/7/12.
//  Copyright © 2016年 songhuipan. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>


typedef NS_ENUM(NSInteger,BKMessageType){
    BKMessageTypeSendToOthers,
    BKMessageTypeSendToMe,
    BKMessageTypeSystemMsg
};


@class Chat;
@interface BKChatModel : NSObject

@property (nonatomic, assign) BKMessageType messageType;
@property (nonatomic,strong) Chat * chat;
@property (nonatomic,strong) User * user;
//@property (nonatomic, copy) NSString * nickName;
//@property (nonatomic, copy) NSString * loginID;
//@property (nonatomic, copy) NSString * text;
@property (nonatomic, strong) NSString * iconName;
@property (nonatomic, strong) NSString * imageName;
//@property (nonatomic, assign) NSTimeInterval timeStr;
@property (nonatomic,assign) NSTimeInterval tempTime;



@property(nonatomic, assign) CGRect timeLabelFrame;

@property(nonatomic, assign) CGRect nameLabelFrame;

@property(nonatomic, assign) CGRect messageLabelFrame;

@property(nonatomic, assign) CGRect airViewFrame;



@property(nonatomic, strong) NSMutableAttributedString *attMessage;

@property(nonatomic, assign) CGFloat cellHeight;


//是否大于一分钟
-(BOOL)biggerOneMin;


@end
